deno.com

method Socket.prototype.[Symbol.asyncDispose]

#Socket.prototype.[Symbol.asyncDispose](): Promise<void>

Calls socket.close() and returns a promise that fulfills when the socket has closed.

Return Type #

Promise<void>